/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-03-11
 * Time: 14:55
 */
public class TestDemo {

    public static void main(String[] args) {

        MyLinkList myLinkList =new MyLinkList();
        myLinkList.addList(8);
        myLinkList.addList(5);
        myLinkList.addList(14);
        myLinkList.addList(2);
        myLinkList.addList(12);

        myLinkList.display();
        myLinkList.reverse();
        myLinkList.display();

    }

}
